package com.xyz.rok.tools.mapper;

import com.xyz.rok.tools.model.Command;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommandMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Command record);

    int insertSelective(Command record);

    Command selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Command record);

    int updateByPrimaryKey(Command record);

    List<Command> selectUnExecutedCommand();

    int updateBeginTime(@Param("id") Integer id);

    int updateEndTime(@Param("id") Integer id);

    Command getLastRunningStatus(@Param("name") String name, @Param("value") String value);
}